package com.samphanie.admin.modules.sys.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author ZSY
 * @date 2021/11/9 13:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginDto implements Serializable {
    private static final long serialVersionUID = -950543470502133808L;

    @NotBlank(message = "请输入用户名")
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotBlank(message = "请输入密码")
    @ApiModelProperty(value = "密码")
    private String password;

    @NotBlank(message = "请输入客户端Id")
    @ApiModelProperty(value = "客户端Id")
    private String clientId;

    @NotBlank(message = "请输入客户端密匙")
    @ApiModelProperty(value = "客户端密匙")
    private String clientSecret;

}
